package com.apinji.alipay.service;

import com.apinji.alipay.dto.AlipayConsumeDto;
import com.apinji.alipay.dto.AlipayConsumeQueryDto;
import com.apinji.common.domain.wrapper.Reply;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface AlipayPayService {


    /**
     * 支付宝支付，支付接口
     *
     * @param alipayConsumeDto
     * @return
     */
    String consume(AlipayConsumeDto alipayConsumeDto, HttpServletResponse response, HttpServletRequest request) throws Exception;


    /**
     * 支付宝支付，交易状态查询
     *
     * @param alipayConsumeQueryDto
     * @return
     */
    Reply consumeQuery(AlipayConsumeQueryDto alipayConsumeQueryDto);


    void backNotify(HttpServletRequest request, HttpServletResponse response) throws Exception;


    /**
     * --------------------------------测试
     *
     * @param request
     * @param response
     */
    String returnUrl(HttpServletRequest request, HttpServletResponse response) throws Exception;
}
